package com.bishe.main.runner;

import com.bishe.main.socketthread.SocketThread;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author 吃瓜
 * @date Created in 2021-05-28 9:34
 */
@Component
public class Runner implements ApplicationRunner {
    @Resource
    private SocketThread socketThread;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        socketThread.runSocket();
    }
}
